import _http from '@/utils/http'

export default {
    roleSearch(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/role/search',
            apiName: '角色列表查询',
        }, params, loading, headers)
    },
    roleDelRole(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/role/delRole',
            apiName: '删除角色',
        }, params, loading, headers)
    },
    roleMenu(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/role/load/menu',
            apiName: '获取全部菜单',
        }, params, loading, headers)
    },
    addRole(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/role/addRole',
            apiName: '添加角色',
        }, params, loading, headers)
    },
    roleDetail(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/role/detail',
            apiName: '角色详情',
        }, params, loading, headers)
    },
    modifyRole(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/role/modifyRole',
            apiName: '修改角色',
        }, params, loading, headers)
    },
    batchState(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/role/batchState',
            apiName: '批量修改角色状态',
        }, params, loading, headers)
    },
}
